package ${initProjectVo.packageName}.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ${initProjectVo.packageName}.dto.SysRoleMultiDTO;
import ${initProjectVo.packageName}.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* @author OFG
* @version 1.0
* @date 2021/1/6 20:09
* @Description
*/
public interface SysRoleMapper extends BaseMapper<SysRole> {

    IPage<SysRoleMultiDTO> selectEntityList(Page<SysRoleMultiDTO> page,@Param(Constants.COLUMN_MAP) Map<String, Object> params);
    /**
    * 查询角色名称
    * @param userId
    * @return
    */
    String selectRoleName(Integer userId);
}
